#include "stdafx.h"
#include "dll.h"

//dll exports
#ifdef __cplusplus
extern "C"
{
#endif
	
	MYDLL_API int __stdcall dll_test(int i)
	{
#ifdef _USRDLL
		AFX_MANAGE_STATE(AfxGetStaticModuleState());
#endif

		return 1;
	}

	MYDLL_API int __stdcall	dll_init()
	{
#ifdef _USRDLL
		AFX_MANAGE_STATE(AfxGetStaticModuleState());
#endif

		return 0;
	}
	MYDLL_API void __stdcall	dll_quit()
	{
#ifdef _USRDLL
		AFX_MANAGE_STATE(AfxGetStaticModuleState());
#endif
		//if( gdaqlib )
		//{
		//	gdaqlib->aexit();
		//	delete gdaqlib;
		//}
	}
	
	MYDLL_API int __stdcall dll_start( )
	{
#ifdef _USRDLL
		AFX_MANAGE_STATE(AfxGetStaticModuleState());
#endif
		int err = 0;

		return err;
	}
	
	MYDLL_API void __stdcall dll_stop()
	{
#ifdef _USRDLL
		AFX_MANAGE_STATE(AfxGetStaticModuleState());
#endif

	}


#ifdef __cplusplus
}
#endif //end dll exports